form method = 'get'
  .panel.panel-default
    .panel-heading
      = link_to "新增" , new_role_path, class: "btn btn-primary btn-xs", :remote=>true

    .panel-body
      .table-responsive
        table.table.table-bordered.table-hover
          tr
            th 编号
            th 名称
            th 权限
            th 操作
            
          -@roles.each do |r|
            tr
              td = r.id
              td = r.name
              td = r.abilities
              td
                = link_to "修改", edit_role_path(:id => r.id), class: "btn btn-success btn-xs", style: "margin-right:10px;", :remote=>true
                = link_to "删除" , role_path(:id => r.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"

         
